package xm.erzhan.models;

import javax.persistence.*;

@Entity
@Table(name = "Warehouse", schema = "", catalog = "")
public class WarehouseEntity {
    private int id;
    private int playerId;
    private String resourceMap;

    @Id
    @Column(name = "id", nullable = false, insertable = true, updatable = true)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "playerId", nullable = false, insertable = true, updatable = true)
    public int getPlayerId() {
        return playerId;
    }

    public void setPlayerId(int playerId) {
        this.playerId = playerId;
    }

    @Basic
    @Column(name = "resourceMap", nullable = true, insertable = true, updatable = true, length = 2500)
    public String getResourceMap() {
        return resourceMap;
    }

    public void setResourceMap(String resourceMap) {
        this.resourceMap = resourceMap;
    }
}
